



<table width="100%" cellpadding="3" class="main">
	<tr>
      <td colspan="7" class="title"><h3>Current / Previous Orders</h3></td>
    </tr>
    <tr>
      <td><p><strong>{#event#}</strong></p></td>
	  <td><p><strong>Order {#id#}</strong></p></td>
	  <td><p><strong>Date Ordered</strong></p></td>
	  <td><p><strong>Tickets</strong></p></td>
	  <td><p><strong>Total Price</strong></p></td>
	  <td><p><b>Order Status</b></p></td>
	  <td><p><b>Options</b></p></td>
    </tr>
    {if $user->logged}
    {order->order_list user_id=$user->user_id order_by_date="DESC"}
	    {if $shop_order.order_status eq "cancel"}
			<tr class='user_order_{$shop_order.order_status}'>
		{elseif $shop_order.order_status eq "reemit"}
			<tr class='user_order_{$shop_order.order_status}'>
		{elseif $shop_order.order_status eq "res"}
			<tr class='user_order_{$shop_order.order_status}'>
		{elseif $shop_order.order_shipment_status eq "send"}
			<tr class='user_order_{$shop_order.order_shipment_status}'>
		{elseif $shop_order.order_payment_status eq "payed"}
			<tr class='user_order_{$shop_order.order_payment_status}'>
		{elseif $shop_order.order_status eq "ord"}
			<tr class='user_order_{$shop_order.order_status}'>
		{else}
			<tr class='user_order_cancel'>
		{/if}
		<td class='admin_info'>
		{order->tickets order_id=$shop_order.order_id limit=1}
		{$shop_ticket.event_name}
		{/order->tickets}
		</td>
	    <td class='admin_info'>{$shop_order.order_id}</td>
		<td class='admin_info'>{$shop_order.order_date}</td>
		<td class='admin_info'>{$shop_order.order_tickets_nr}</td>
		<td class='admin_info'>{$shop_order.order_total_price}</td>
		<td class='admin_info'>
		{if $shop_order.order_status eq "cancel"}Canceled
		{elseif $shop_order.order_status eq "reemit"}Remade
		{elseif $shop_order.order_status eq "res"}{#reserved#}
		{elseif $shop_order.order_shipment_status eq "send"}Sent & Payed
		{elseif $shop_order.order_payment_status eq "payed"}Payed
		{elseif $shop_order.order_status eq "ord"}Ordered - Unpaid
		{else}Unknown Status - Contact Admin
		{/if}</td>
		<td class='admin_info'><a href='?personal_page=orders&id={$shop_order.order_id}'><img border='0' src='images/view.png'> View order</a>
		</td>
	  </tr>
    {/order->order_list}
    {/if}
</table>